<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tag" uri="surveyonline-taglib" %>
<%@page import="fr.univ.surveyonline.model.User"%> 
<%@page import="fr.univ.surveyonline.model.allEnum.Role"%>
<%
	User u =(User)session.getAttribute("user"); 
	if ( (u == null) ||(u.getRole() != Role.SONDEUR)) {
		request.setAttribute("message", "Cette page est uniquement accessible aux sondeurs.");
		request.getRequestDispatcher("unaccessible.jsp").forward(request,response);
		return;
	}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">

<head>
    <title><tag:languageTag id="title"/></title>
	<%@ include file="/layout/head.tag" %>
	<script type="text/javascript" src="/js/utils/function.js"></script>
</head>
<body>

<div id="global">
	<div id="entete">
		<%@ include file="/layout/menu.tag" %>
	</div>
	<div id="contenu">
		<h2><tag:languageTag id="creation_creer"/></h2>
		
		<h3><tag:languageTag id="creation_vierge"/></h3>
		<p style="margin-left:0.7em">
			<a href="/createNew"><tag:languageTag id="creation_nouveau"/></a>
		</p>
		
		<h3><tag:languageTag id="creation_contr"/></h3>
		<p style="margin-left:0.7em">
			<a href="contraintes-choix.jsp"><tag:languageTag id="creation_contr_voir"/></a>
		</p>
		
		<p> <tag:languageTag id="creation_p1"/>
			<h3><img alt="help" src="images/help.png" onclick="aide()" /> <tag:languageTag id="creation_liste" /></h3>
			<div style="margin-left:2em" >
				<tag:surveyTag type="toLoad"/>
			</div>
		</p>
	</div>
	<div id="pied">
		<%@ include file="/layout/pied.tag" %>
	</div>
</div>

</body>
</html>